var actionPaneWidth=55;
function formater_row_actions(cellvalue, options, rowObject)
{
	var defaultOpts={
		editBtn:true,
		onEditFunc:"openEditDialog",
		deleteBtn:true,
		onDeleteFunc:"deleteRow"
	}
	// format the cellvalue to new format
	new_formated_cellvalue = '<button class="ui-button-icon-only ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary" \n\
					onmouseover="$(this).addClass(\'ui-state-hover\')" \n\
					onmouseout="$(this).removeClass(\'ui-state-hover\')" >	\n\
					<span class="ui-icon ui-icon-plus"	\n\
						onclick="'+defaultOpts.onEditFunc+'("' + rowObject.id + '");return false"\n\
					></span>\n\
					</button>'
					//+
					//"<a href=\"#\">Удалить</a>"

	new_formated_cellvalue='<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only"\
						onclick="'+defaultOpts.onEditFunc+'(\'' + rowObject.id + '\')" \
						onmouseover="$(this).addClass(\'ui-state-hover\')"\
						onmouseout="$(this).removeClass(\'ui-state-hover\')"\
						 role="button" title="Button with icon only"\><span class="ui-button-icon-primary ui-icon ui-icon-pencil">\
						</span><span class="ui-button-text">Изменить</span></button>'
	new_formated_cellvalue+='<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only"\
						onclick="'+defaultOpts.onDeleteFunc+'(\'' + rowObject.id + '\')" \
						onmouseover="$(this).addClass(\'ui-state-hover\')"\
						onmouseout="$(this).removeClass(\'ui-state-hover\')"\
						 role="button" title="Button with icon only"\><span class="ui-button-icon-primary ui-icon ui-icon-close">\
						</span><span class="ui-button-text">Удалить</span></button>'
	return new_formated_cellvalue;
}

function onWindowResize()
{
	//alert(2)
	var nav=$(".navpane");
	var contentRoot=$(".contentRoot")
	var contTab=$("#content_table")
	//alert(nav.width())
	contentRoot.css("padding-left", nav.width());
	
	var fullTable=$("#gview_content_table")
	if(contTab.length){
	var tabH=window.innerHeight
					-contTab.offset().top
					-$(".ui-jqgrid-titlebar",contTab).height()
					-$("#content_table_toppager").height()
					-$("#pager").height()-30
	//$(".header").text($(document).height()+"-"+window.innerHeight+"-"+contTab.getGridParam("height")+"-"+contTab.offset().top+"-"+tabH)
	contTab.setGridHeight(tabH)
}
	nav.height(contentRoot.height())
	$("#tree").height(contentRoot.height())
	
	//$(".header").text(contentRoot.outerWidth()-nav.width())
	contTab.setGridWidth(contentRoot.outerWidth()-nav.width()-3)
	
	
}